Skip to content

Conversation

@ldez
Copy link
Member

@ldez ldez commented Mar 15, 2024

ContextLoader was an ambiguous name to hide that it was doing 2 things:

  • load packages
  • build a linter context

The PR splits ContextLoader into ContextBuilder and PackageLoader:

  • ContextBuilder builds a linter context
  • PackageLoader loads packages

There are no fundamental changes here, the goal is to ease maintenance.

Also, it removes the usage of cfg.Run.Args.

I will create another PR to remove completely the usage of cfg.Run.Args.

One commit, one change.

@ldez ldez added enhancement New feature or improvement topic: cleanup Related to code, process, or doc cleanup labels Mar 15, 2024
@ldez ldez added this to the next milestone Mar 15, 2024
@ldez ldez requested review from alexandear and bombsimon March 16, 2024 16:26
ldez and others added 2 commits March 16, 2024 19:07
@ldez ldez merged commit 7ad5ccb into golangci:master Mar 17, 2024
@ldez ldez deleted the feat/split-context-loader branch March 17, 2024 21:52
@ldez ldez mentioned this pull request Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement topic: cleanup Related to code, process, or doc cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants